<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>修改场次</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.min.css">
<link href="__PUBLIC__/css/font-awesome.css" rel="stylesheet">
<script src="__PUBLIC__/js/jquery.min.js"></script>
<script src="__PUBLIC__/js/jquery.hotkeys.js"></script>
<script src="__PUBLIC__/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/prettify.js"></script>
<script src="__PUBLIC__/js/bootstrap-wysiwyg.js"></script>
<link href="__PUBLIC__/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
<style type="text/css">
.autoflow-x {
	overflow-x: auto;
}
.autowidth {
	max-width: 500px;
}
</style>
</head>
<body>
<!-- 成绩公布 -->
<div class="grades">
	<div class="autoflow-x">
		<table class="table" id="saishi">
			<tr style="background-color: #F2F3F7;">
				<th>ID</th>
				<th>赛事</th>
				<th>报名截止时间</th>
				<th>操作</th>
			</tr>
			<form action="" method="get">
				<volist name="all_gamelist" id="vo">
					<tr>
						<td>{$vo.all_id}</td>
						<td>{$vo.all_name}</td>
						<td>{$vo.all_e_time}</td>
						<td>
							<form>
							<input type="submit" value="进入" class="btn" name="submit">
								<input type="hidden" value="su" name="step">
								<input type="hidden" value="{$vo.all_id}" name="id">	
							</form>
						</td>
					</tr>
				</volist>
			</form>
		</table>
		<table class="table" id="zubie">
			<tr style="background-color: #F2F3F7;">
				<th>场次名</th>
				<th>性别</th>
				<th>组别</th>
				<th>开赛时间</th>
				<th>操作</th>
			</tr>
			<form action="" method="get">
				<volist name="g_list" id="vo">
					<tr>
						<td>{$vo.g_name}</td>
						<td>{$vo.g_sex}</td>
						<td>{$vo.g_type}</td>
						<td>{$vo.g_start}</td>
						<td>
							<form>
								<input type="hidden" value="last" name="step">
								<input type="hidden" value="{$vo.g_id}" name="g_id">
								<input type="submit" value="进入" class="btn">
								<a href="__URL__/deletechang/id/{$vo.g_id}" class="btn btn-default" confirm="是否确认删除">删除</a>
							</form>
						</td>
					</tr>
				</volist>
			</form>
		</table>
		<div id="luru">
				<div class="center-block autowidth" id="addchangci">
	<volist name="ga_list" id="vo">
	<form class="center-block autowidth" action="" method="post">
		<div class="form-group">
			<label>场次名称</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入场次" name="gamename" value="{$vo.g_name}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>比赛时间</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input readonly class="span3 form-control form_datetime" size="16" type="text" name="btime" value="{$vo.g_date}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>颁奖简介</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入" name="info"
					value="{$vo.g_info}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>比赛最小年龄(只用输入数字)</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入" maxlength="3" name="bage" onkeyup="onlyNumber(this)" value="{$vo.g_b_age}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>比赛最大年龄(只用输入数字)</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入" maxlength="3" name="eage" onkeyup="onlyNumber(this)" value="{$vo.g_e_age}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>参报组别</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<select name="gameType">
						<option value="职业组">职业组</option>
						<option value="专业组">专业组</option>
						<option value="业余组">业余组</option>
						<option value="女子6人组">女子6人组</option>
						<option value="团体舞">团体舞</option>
					</select>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>本场最大人数</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入人数" maxlength="4" onkeyup="onlyNumber(this)" name="num" value="{$vo.g_maxperson}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>报名费</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入" maxlength="6" onkeyup="onlyNumber(this)" name="money" value="{$vo.g_money}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>参赛性别</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<select name="sex">
						<option value="0">不限</option>
						<option value="1">男</option>
						<option value="2">女</option>
					</select>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label>比赛简单代号</label>
			<div class="input-group center-block">
				<div class="changemodul">
					<input class="form-control" type="text" placeholder="请输入比赛项目" name="short" value="{$vo.g_short}">
				</div>
			</div>
		</div>
		<div style="width: 70%;overflow: hidden;" class="center-block">
			<input type="submit" class="btn btn-info center-block" value="提交">
		</div>
	</form>
	</volist>
		</div>
	</div>
	</div>
</div>
<script type="text/javascript">
	var saishi = {$saishi},
	zubie = {$zubie};
	function setGrades(){
		if (saishi == 1 && zubie == -1){
			$("#saishi").hide();
			$("#zubie").show();
			$("#luru").hide();
		}
		if (saishi == 1 && zubie == 1) {
			$("#saishi").hide();
			$("#zubie").hide();
			$("#luru").show();
		}
		if (saishi == -1){
			$("#saishi").show();
			$("#zubie").hide();
			$("#luru").hide();
		}
	}
	setGrades();
	function back(){
			window.history.back();
		}
</script>
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
	<script type="text/javascript" src="__PUBLIC__/js/bootstrap-datetimepicker.fr.js" charset="UTF-8"></script>
<script type="text/javascript">
		$('.span2').datetimepicker({
            format:'yyyy-mm-dd',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 3,
            forceParse: 0,
            showMeridian: 1
        });
        $('.span3').datetimepicker({
            format:'yyyy-mm-dd hh:ii:ss',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 3,
            forceParse: 0,
            showMeridian: 1
        });
</script>
</body>
</html>